package com.future.common.api.admin.vo;

import com.diboot.core.binding.annotation.BindEntityList;
import com.future.common.api.admin.entry.SysMenu;
import com.future.common.api.admin.entry.SysRole;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @ClassName : SysRoleVO
 * @Author : lby
 * @Date: 2021/3/6 16:13
 * @Description :
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysRoleVO extends SysRole {

    @BindEntityList(entity = SysMenu.class,condition = "this.id=sys_menu_role.menu_id and sys_menu_role.role_id=id")
    private List<SysMenu> menuList;
}
